package cn.ch.pet.domain;

import cn.ch.basic.domain.Base;
import cn.ch.org.domain.Shop;
import cn.ch.user.domain.User;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Why
 * @since 2022-02-24
 */
@Data
public class Pet extends Base{

    private static final long serialVersionUID = 1L;

    private String name;
    private BigDecimal saleprice;
    private BigDecimal costprice;
    private String resources;
    /**
     * 状态：0下架 1上架
     */
    private Long state = 0L;
    /**
     * 类型id
     */
    private Long typeId;
    private Date offsaletime;
    private Date onsaletime;
    private Date createtime = new Date();
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private Long searchMasterMsgId;
    private Integer auditnum;
    private String note;
    /*detail 设置详细信息 */
    private PetDetail detail;
    /*获取到店铺--与shopId相关*/
    private Shop shop;
    /*获取到用户--与userId相关*/
    private User user;
    /*获取到宠物类型--与typeId相关*/
    private PetType petType;
}
